﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SomethingSpacial.UserControls
{
    public partial class CommentsUserControl : UserControl
    {
        public string Text
        {
            get { return CommentsTextBox.Text; }
            set { CommentsTextBox.Text = value; }
        }

        public void Focus() {
            CommentsTextBox.Focus();
        }

        public void SelectAll() {
            CommentsTextBox.SelectAll();
        }

        public CommentsUserControl()
        {
            InitializeComponent();
            this.Loaded += new System.Windows.RoutedEventHandler(CommentsUserControl_Loaded);
        }



        private void CommentsTextBox_GotFocus(object sender, System.Windows.RoutedEventArgs e)
        {
            Lamp.Opacity = 1;
        }

        private void CommentsUserControl_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            CommentsTextBox.GotFocus += new System.Windows.RoutedEventHandler(CommentsTextBox_GotFocus);
            WheelStoryboard.Begin();
        }

    }
}
